package velocity;

import lombok.Data;

import java.util.LinkedList;

@Data
public class VelocityRequest {

    //模块名称
    private String AsyncFlowModuleName;
    //异步流描述
    private String AsyncFlowModuleDes;

    //异步流责任人名称
    private String AsyncFlowMaintainName;
    //异步流超时报警时间(毫秒)
    private int AsyncFlowTimeOutsLimit;
    //是否需要继承上下文基类
    private boolean hasBaseContext;
    //是否覆盖原来存在Manager
    private boolean replaceManager;
    //节点集合
    private LinkedList<VelocityModel.AsyncFlowNodeInfo> asyncFlowNodeInfoList = new LinkedList<>();


    @Data
    public static class AsyncFlowNodeInfoRequest {

        //Validator：验证   GetData：查询    GetDataPub：公共查询  Operator：操作   Save：保存    Sync：保存后同步    Async：保存后异步
        private String ExecuteName;
        //异步流节点文件描述
        private String AsyncFlowNodeDes;
        //异步流节点文件名称
        private String AsyncFlowNodeFileName;
        //异步流节点是否异步
        private boolean Async;
    }
}
